package com.itheima.reggie.common;

public class MyContext {
    private static ThreadLocal<Long> threadLocal = new ThreadLocal<>();

    public static Long getLoginId(){
       return threadLocal.get();
    }

    public static void setLoginId(Long id){
         threadLocal.set(id);
    }

    public static void remove(){
        threadLocal.remove();
    }
}
